//
//  HistoryListModel.h
//  DaiShengInvest
//
//  Created by 张睿 on 2017/7/28.
//  Copyright © 2017年 davinci. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HistoryListModel : NSObject

/*
 
 "account": "6661",                          //账号ID
 "closePrice": 1.0865,                       //平仓价格
 "closeTime": "2017-04-24T06:20:54Z",        //平仓时间
 "comment": "",                              //注释
 "commission": -50.0,                        //交易手续费（佣金）
 "commissionAgent": 0.0,                     //交易手续费（经纪人佣金）
 "dateTime": "2017-04-11T07:47:41Z",         //下单时间
 "extraData": {
 "digits": "5",                          //小数位
 "cmd": "0",                             //
 "state": "3"                            //状态位
 },
 "initialMargin": 0.0,                       //初始保证金，针对期货品种
 "maintenanceMargin": 0.0,                   //维持保证金，针对期货品种
 "marginRate": 1.05926,                      //保证金比例
 "openPrice": 1.05926,                       //开仓价格
 "openTime": "2017-04-11T07:47:41Z",         //开仓时间
 "orderDirection": "Buy",                    //交易方向
 "pnl": 2724.0,                              //浮动盈亏
 "positionId": "3179873",                    //持仓单单号
 "positionStatus": "Closed",                 //Open, Closed, Deleted
 "stopLoss": 1.04,                           //止损价格
 "swap": -88.66,                             //隔夜利息
 "symbol": "EURUSD",                         //交易品种ID
 "takeProfit": 1.15,                         //止盈价格
 "tax": 0.0,                                 //税费
 "tradeReason": "TRADE_BY_DEALER",           //
 "volume": 1.0                               //交易量
 
 */

//平仓时间
@property (nonatomic, copy)NSString * closeTime;
//交易品种ID
@property (nonatomic, copy)NSString * symbol;
//止盈价格
@property (nonatomic, copy)NSString * pnl;
//交易方向   看多，看空
@property (nonatomic, copy)NSString * orderDirection;
//交易量
@property (nonatomic, copy)NSString * volume;
//初始保证金，针对期货品种
@property (nonatomic, copy)NSString * initialMargin;
//交易手续费（佣金）
@property (nonatomic, copy)NSString * commission;
//隔夜利息
@property (nonatomic, copy)NSString * swap;
//开仓价格
@property (nonatomic, copy)NSString * openPrice;
//平仓价格
@property (nonatomic, copy)NSString * closePrice;
//开仓时间
@property (nonatomic, copy)NSString * openTime;
//持仓单单号
@property (nonatomic, copy)NSString * positionId;

//
//@property (nonatomic, copy)NSString *
//
//@property (nonatomic, copy)NSString *


//KVC
+(instancetype)modelWithDictionary:(NSDictionary *)dic;

//访问网络
+(void)historyListWithSucess:(void(^)(NSArray<HistoryListModel *> *array))sucessBlock error:(void(^)())errorBlock;

@end
